package com.dongdongqiang.daogenerator.tablemetabuilder;

import com.dongdongqiang.daogenerator.pojo.TableColumn;
import com.dongdongqiang.daogenerator.pojo.TableMeta;

/**
 * Created by ZZB on 2017/12/3.
 */
public interface TableMetaBuilder {

    <T> TableMeta obtainByObject(T o);

    TableMeta obtainByClass(Class clazz);

    Object readFieldByColumnName(Object object, String columnName) throws Exception;

    TableColumn obtainByColumnName(Class clazz, String columnName);

    TableColumn obtainByFieldName(Class clazz, String fieldName);

}
